7 * Requires: jQuery 1.0 (tested with svn as of 7/20/2006)
9 * Feel free to do whatever you'd like with this, just please give credit where
14 * pause() will hold everything in the queue for a given number of milliseconds,
15 * or 1000 milliseconds if none is given.
19 * unpause() will clear the queue of everything of a given type, or 'fx' if no
23 $.fn
.pause = function(milli
,type
) {
24 milli
= milli
|| 1000;
26 return this.queue(type
,function(){
28 setTimeout(function(){
34 $.fn
.clearQueue
= $.fn
.unpause = function(type
) {
35 return this.each(function(){
37 if(this.queue
&& this.queue
[type
]) {
38 this.queue
[type
].length
= 0;